<template>
	<view class="container">
		<view class="header">

		</view>
		<view class="content">
			<view class="avatar">
				<image src="https://q-api.lanbeiduo.com/api/file/download/I1h1CefyYD_头像.png" mode="" class="icon">
					</image>
			</view>
			<view class="title">
				无人机学员
			</view>
			<view class="item">
				<view class="label">
					考试科目
				</view>
				<view class="value">
					多旋翼无人机
				</view>
			</view>
			<view class="item">
				<view class="label">
					考试标准
				</view>
				<view class="value">
					100题, 120分钟
				</view>
			</view>
			<view class="item">
				<view class="label">
					合格标准
				</view>
				<view class="value">
					70分及格 (满分100分)
				</view>
			</view>
			<view class="item">
				<view class="label">
					出题规则
				</view>
				<view class="value">
					根据公安部规定出题规则组卷
				</view>
			</view>
		</view>
		<view class="btn" @tap="toQuestion">
			开始考试
		</view>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive,
		unref,
		toRaw,
		toRefs,
		nextTick
	} from 'vue'
	import {
		onInit,
		onLoad,
		onReady,
		onShow,
		onHide,
		onUnload,
		onResize,
	} from '@dcloudio/uni-app'
	import {
		$http,
		toLogin,
		timestampToDateTime
	} from "@/common"
	onLoad((options) => {

	})

	function toQuestion() {
		uni.navigateTo({
			url: '/pages/home/question3'
		})
	}
</script>
<style lang="scss" scoped>
	.container {
		height: 100%;
		background-color: #F9F9F9;

		.header {
			width: 100%;
			height: 300rpx;
			background: linear-gradient(to bottom, #1667EA, #F9F9F9);
		}

		.content {
			padding: 30rpx 100rpx;
			width: 700rpx;
			margin: -220rpx auto;
			background-color: #fff;
			border-radius: 20rpx;

			.avatar {
				position: relative;
				top: -80rpx;
				left: 50%;
				transform: translateX(-50%);
				display: flex;
				justify-content: center;
				align-items: center;
				background: #fff;
				width: 120rpx;
				height: 120rpx;
				border-radius: 50%;
			}

			.icon {
				width: 100rpx;
				height: 100rpx;
			}

			.title {
				font-size: 34rpx;
				text-align: center;
				margin: -60rpx 0 50rpx 0;
			}

			.item {
				display: flex;
				margin-bottom: 30rpx;

				.label {
					margin-right: 20rpx;
					color: #778899;
				}

				.value {}
			}
		}

		.btn {
			width: 620rpx;
			height: 80rpx;
			color: #fff;
			font-size: 32rpx;
			font-weight: bold;
			border-radius: 16rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			margin: 281rpx auto 0rpx auto;
			background-color: #1667EA;
		}
	}
</style>